<?php

namespace App\EloquentORM;

use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Laravel\Passport\HasApiTokens;

/**
 * @method static where( array $array )
 */
class User extends Authenticatable
{
    use HasApiTokens,Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email',
	    'password',
	    'sex',
	    'phone',
	    'avatar',
	    'real_name',
	    'city',
	    'company',
	    'github_name',
	    'weibo_name',
	    'weibo_link',
	    'twitter_account',
	    'linkedin',
	    'personal_website',
	    'wechat_qrcode',
	    'wechat_payment_qrcode',
	    'introduction',
	    'signature',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'email_verified_at' => 'datetime',
    ];
}
